<?php
/**
 * #Celebrate Shieh
 *             ,%%%%%%%%,
 *           ,%%/\%%%%/\%%
 *          ,%%%\c "" J/%%%
 * %.       %%%%/ o  o \%%%
 * `%%.     %%%%    _  |%%%
 *  `%%     `%%%%(__Y__)%%'
 *  //       ;%%%%`\-/%%%'
 * ((       /  `%%%%%%%'
 *  \\    .'          |
 *   \\  /       \  | |
 *    \\/         ) | |
 *     \         /_ | |__
 *     (___________))))))) 攻城湿
 *
 *        _       _
 * __   _(_)_   _(_) __ _ _ __
 * \ \ / / \ \ / / |/ _` |'_ \
 *  \ V /| |\ V /| | (_| | | | |
 *   \_/ |_| \_/ |_|\__,_|_| |_|
 */

use Illuminate\Support\Facades\Route;

Route::group([ 'prefix' => 'expansion', 'namespace' => 'Expansion', 'as' => 'expansion.' ], function () {
    Route::group([ 'prefix' => 'email' ], function () {//邮件
        Route::get('index', 'EmailController@index')->name('email.index');//邮件展示
        Route::get('create', 'EmailController@create')->name('email.create');//邮件新增
        Route::get('download', 'EmailController@download')->name('email.download');//下载邮件附件
        Route::get('AllDownload', 'EmailController@AllDownload')->name('email.AllDownload');//批量下载邮件附件
        Route::get('picFile', 'EmailController@picFile')->name('email.picFile');//已上传文件选择
        Route::get('laZaRd', 'EmailController@laZaRd')->name('email.laZaRd');//拉取邮件
        Route::post('update', 'EmailController@update')->name('email.update');//发送邮件
        Route::delete('{email}', 'EmailController@destroy')->name('email.destroy');//删除邮件
        Route::get('{email}', 'EmailController@show')->name('email.show');//邮件详情
    });
    Route::group([ 'prefix' => 'chat' ], function () {//聊天室
        Route::get('index', 'ChatController@index')->name('chat.index');//聊天室展示
        Route::get('room', 'ChatController@room')->name('chat.room');//添加聊天室新房间
        Route::post('destroy', 'ChatController@destroy')->name('chat.destroy');//删除聊天室房间
    });
    Route::group([ 'prefix' => 'cache' ], function () {//文件
        Route::get('index', 'CacheController@index')->name('cache.index');//文件管理展示
        Route::get('delete', 'CacheController@delete')->name('cache.delete');//文件管理删除
        Route::post('store', 'CacheController@store')->name('cache.store');//文件管理添加
        Route::get('edit', 'CacheController@edit')->name('cache.edit');//文件管理修改展示
        Route::post('update', 'CacheController@update')->name('cache.update');//文件管理保存
        Route::get('tree', 'CacheController@tree')->name('cache.tree');//文件管理树
    });
    Route::group([ 'prefix' => 'fullCalendar' ], function () {//日历
        Route::get('index', 'FullCalendarController@index')->name('fullCalendar.index');//日历管理展示
        Route::get('calendar', 'FullCalendarController@calendar')->name('fullCalendar.calendar');//日历已有事件
        Route::post('store', 'FullCalendarController@store')->name('fullCalendar.store');//日历新增事件
        Route::put('update', 'FullCalendarController@update')->name('fullCalendar.update');//日历修改事件
        Route::post('destroy', 'FullCalendarController@destroy')->name('fullCalendar.destroy');//日历删除事件
    });
    Route::resource('globe', 'GlobeController');//数据库备份 资源控制器
    Route::group([ 'prefix' => 'globe' ], function () {//数据库
        Route::post('delete', 'GlobeController@delete')->name('globe.delete');//数据库备份删除
        Route::get('create', 'GlobeController@create')->name('globe.create');//数据库备份
        Route::get('store', 'GlobeController@store')->name('globe.store');//下载
    });
    Route::group([ 'prefix' => 'location' ], function () {//地图
        Route::get('index', 'LocationController@index')->name('location.index');//地图展示
    });
    Route::group([ 'prefix' => 'calculation' ], function () {//计算器
        Route::get('index', 'CalculationController@index')->name('calculation.index');//计算器展示
        Route::post('max', 'CalculationController@max')->name('calculation.max');//DNF拍卖计算
        Route::post('store', 'CalculationController@store')->name('calculation.store');//普通计算器
        Route::delete('/{destroy}', 'CalculationController@destroy')->name('calculation.destroy');//删除
        Route::post('delete', 'CalculationController@delete')->name('calculation.delete');//批量删除
    });
    Route::group([ 'prefix' => 'recycle' ], function () {//回收站
        Route::get('index', 'RecycleController@index')->name('recycle.index');//首页
        Route::patch('reduction', 'RecycleController@reduction')->name('recycle.reduction');//还原
        Route::patch('destroy', 'RecycleController@destroy')->name('recycle.destroy');//删除
    });
    Route::group([ 'prefix' => 'job' ], function () {//邮件队列
        Route::get('index', 'JobController@index')->name('job.index');//队列展示
        Route::delete('/{destroy}', 'JobController@destroy')->name('job.destroy');//队列删除
        Route::post('delete', 'JobController@delete')->name('job.delete');//队列批量删除
        Route::patch('job', 'JobController@status')->name('job.status');//队列修改
    });
    Route::group([ 'prefix' => 'site' ], function () {//删除的数据
        Route::get('index', 'SiteController@index')->name('site.index');//首页
        Route::patch('reduction', 'SiteController@reduction')->name('site.reduction');//还原
    });
});
